<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="vue.js"></script>
</head>

<body>
    <div id="app">
        {{ message }}
        <h1>
            <!--双向绑定 v-model-->
            <input type="text" v-model="message" v-if="message">
        </h1>
        <pre>
            {{ $data|json }}
        </pre>
    </div>
    <script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!'
        },
        methods:{
            update:function(){
            }
        },
        compiled:function () {
            console.log('我加载完了...');
        }
    })
    </script>
</body>

</html>
